﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class UysaaController : ControllerBase, IIStareBll
    {
         public UysaaController(IIStareBll bll)
        {
            Bll = bll;
        }

        public IIStareBll Bll { get; }

        /// <summary>
        /// 绑定
        /// </summary>
        /// 
        [HttpGet]
        public List<Stare> stares()
        {
             return Bll.stares();
        }
    }
}
